import { getCateList } from '../category/api'

/**
 * @Author: Wang chunsheng  email:2192138785@qq.com
 * @Date:   2024-02-07 21:48:04
 * @Last Modified by:   Wang chunsheng  email:2192138785@qq.com
 * @Last Modified time: 2024-02-08 00:53:17
 */
export const form = {
  'category': {
    'type': 'cascader',
    'label': '分类',
    'isOptions': true,
    'options': async() => {
      const res = await getCateList()
      return res.data
    }
  },
  'topic_title': {
    'type': 'input',
    'label': '标题'
  },
  'topic_content': {
    'type': 'fire-editor',
    'label': '帮助内容'
  }
}

export const order = ['topic_title', 'category', 'topic_content']

export const tableColumns = [{
  'label': 'Topic ID',
  'prop': 'topic_id'
}, {
  'label': 'Category ID',
  'prop': 'category_id'
}, {
  'label': 'Topic Title',
  'prop': 'topic_title'
}, {
  'label': 'Topic Content',
  'prop': 'topic_content'
}, {
  'label': 'Read Count',
  'prop': 'read_count'
}, {
  'label': '创建时间',
  'prop': 'create_time'
}, {
  'label': '更新时间',
  'prop': 'update_time'
}]

export const filterInfo = {
  fieldList: {
    'label': '更新时间',
    'type': 'input',
    'value': 'DiandiSubscriptionHelpTopic[update_time]'
  }

}

export const path = {
  index: 'diandi-subscription-help-topic-index',
  update: 'diandi-subscription-help-topic-update',
  create: 'diandi-subscription-help-topic-create',
  api: '/diandi_subscription/help/topic'
}

export const rowKey = ''
